package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class DeleteCommentRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Logical_Delete_Comment";

    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        DeleteCommentRequestBody body = new DeleteCommentRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setUuid(getUuid());
        return body;
    }

    private class DeleteCommentRequestBody extends BaseTokenRequestBody {

        @SerializedName("Identity")
        private String uuid;

        private DeleteCommentRequestBody() {
            setSv(BaseRequestConfig.SV_COMMENT_DELETE);
        }

        public String getUuid() {
            return uuid;
        }

        public void setUuid(String uuid) {
            this.uuid = uuid;
        }
    }
}
